//****************************************************************
//请求地址
// 远程地址
const courseUrl = 'http://8.140.156.159:9004';
//本地地址
// const courseUrl = 'http://127.0.0.1:9004';
//用户登录
const loginURL = courseUrl+'/api/login';
//注册地址
const registerURL = courseUrl+'/api/register';
//注销地址
const logoutURL = courseUrl+'/api/logout';
//修改密码
const updatePwdURL = courseUrl+'/api/updatePassword';

//****************************************************************
//保存课程
const courseSaveURL = courseUrl+'/baseCourse/saveOrUpdate';
//查询课程
const courseFindByIdURL = courseUrl+'/baseCourse/getBaseCourseInfo?id=';
// 筛选名称列表
const selectNameTabListURL = courseUrl+'/baseCourse/findNameTabList';
//筛选课程列表
const  selectCourseTypeURL = courseUrl+'/baseDict/findDistListByType?dictType=course_type';
//课程表格数据查询
const findTableListURL = courseUrl+'/baseCourse/findMapData?';

//保存学生信息
const saveStudentDataURL = courseUrl+'/student/saveOrUpdate';
//获取学生列表
const findStudentListURL = courseUrl+'/student/list';
//获取学生信息
const findStudentListPageURL = courseUrl+'/student/listPage';
//删除学生记录
const deleteStudentDataURL = courseUrl+'/student/deleteByIds?ids=';

//查询记录列表信息
const findRecordDataURL = courseUrl+'/record/list?baseCourseId=';
//保存记录信息
const saveRecordDataURL = courseUrl+'/record/saveOrUpdate';
//删除记录
const deleteRecordDataURL = courseUrl+'/record/deleteByIds?ids=';

//保存体招学生信息
const saveSportStudentDataURL = courseUrl+'/sport/saveOrUpdate';
//获取体招学生列表
const findSportStudentListURL = courseUrl+'/sport/list';
//获取体招学生信息
const findSportStudentListPageURL = courseUrl+'/sport/listPage';
//删除体招学生记录
const deleteSportStudentDataURL = courseUrl+'/sport/deleteByIds?ids=';


//保存单词模板信息
const saveWordModuleDataURL = courseUrl+'/wordModule/saveOrUpdate';
//获取单词模板列表
const findWordModuleListURL = courseUrl+'/wordModule/list';
//获取单词模板信息
const findWordModuleListPageURL = courseUrl+'/wordModule/listPage';
//删除单词模板记录
const deleteWordModuleDataURL = courseUrl+'/wordModule/deleteByIds?ids=';


//查询记录列表信息
const findWordDataURL = courseUrl+'/wordData/list?wordModuleId=';
//保存记录信息
const saveWordDataURL = courseUrl+'/wordData/saveOrUpdate';
//删除记录
const deleteWordDataURL = courseUrl+'/wordData/deleteByIds?ids=';
//****************************************************************

//token
const tokenKey = 'token';
const tokenExpire = 1000*60*60;//60分钟 token 失效时间
//****************************************************************
//路由地址：
//去登陆
const toLoginRouter = '/course/login';
//进入课程列表页
const toCourseRouter = '/course/course';

const wordModule = new Object();
wordModule.findDetailByPhoneNumber = courseUrl+'/wordModule/findDetailByPhoneNumber?phoneNumber='
wordModule.saveWordCheckData = courseUrl+'/wordCheck/saveWordCheckData'
// wordModule.findWordCheckResultByPhoneNumber = courseUrl+'/wordCheck/findWordCheckResultByPhoneNumber?phoneNumber='
wordModule.findDetailToStudent = courseUrl+'/wordCheck/findDetailToStudent?id='


// word:{
//   saveWordDataURL:courseUrl+'/wordData/saveOrUpdate';
// }

export default {
  courseUrl,
  loginURL,
  registerURL,
  logoutURL,
  courseSaveURL,
  updatePwdURL,
  courseFindByIdURL,
  selectNameTabListURL,
  selectCourseTypeURL,
  findTableListURL,
  findStudentListPageURL,
  saveStudentDataURL,
  tokenKey,
  tokenExpire,
  toLoginRouter,
  toCourseRouter,
  findStudentListURL,
  saveRecordDataURL,
  deleteStudentDataURL,
  findRecordDataURL,
  deleteRecordDataURL,
  saveSportStudentDataURL,
  findSportStudentListURL,
  findSportStudentListPageURL,
  deleteSportStudentDataURL,
  saveWordModuleDataURL,
  findWordModuleListURL,
  findWordModuleListPageURL,
  deleteWordModuleDataURL,
  findWordDataURL,
  saveWordDataURL,
  deleteWordDataURL,
  wordModule,
}
